import request from "@/utils/request";

// 查询签到规则列表
export function listRules(query) {
  return request({
    url: "/library/mbSignRules/list",
    method: "get",
    params: query,
  });
}

// 查询签到规则详细
export function getRules(id) {
  return request({
    url: "/library/mbSignRules/" + id,
    method: "get",
  });
}

// 新增签到规则
export function addRules(data) {
  return request({
    url: "/library/mbSignRules",
    method: "post",
    data: data,
  });
}

// 修改签到规则
export function updateRules(data) {
  return request({
    url: "/library/mbSignRules",
    method: "put",
    data: data,
  });
}

// 删除签到规则
export function delRules(id) {
  return request({
    url: "/library/mbSignRules/" + id,
    method: "delete",
  });
}
